/*
 * @Author: lixb
 * @Date: 2020-08-31 10:23:15
 * @LastEditTime: 2020-09-01 15:48:12
 * @Descripttion:员工信息
 */
import axios from '@/utils/axios';
//获取员工列表
export const getStaffList = data =>
  axios.post(`/bnd-organization/userOrganization/selectStaff`, data);
//员工详情
export const getStaff = data =>
  axios.get(
    `/bnd-organization/userOrganization/staffDetail/${data.organizationId}/${data.staffId}`,
    data
  );
//获取员工详情下面的薪享卡表格
export const getCardList = ({ organizationId, pageCurrrent, pageSize, userId }) =>
  axios.post(
    `/bnd-uaac/advance/advanceAmountRecordByUserId?organizationId=${organizationId}&pageCurrrent=${pageCurrrent}&pageSize=${pageSize}&userId=${userId}`
  );

//回收薪享卡额度
export const recycleBalance = data => axios.post(`/bnd-uaac/v1/api/salaryWelfare/recycle`, data);
